html,
body {
  font-size: 15px;
  height: 100%;

  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;

  transform-style: preserve-3d;
}

body {
  display: flex;
  align-items: center;

  /* 背景图片 */
  background-image: url(../img/background.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  perspective: 5px;
}

/* 两个界面的盒子 */
.containBox {
  position: relative;

  width: 100%;
  margin: 0 auto;

  perspective: 100px;
}

/* 登陆界面 */
.container1 {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: -300px;
  right: 0;
  bottom: 0;
  margin: auto;

  z-index: 1;
}

/* 登陆界面的输入框容器 */
.logoiptBox1 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  height: 400px;
  width: 450px;
  margin: 0 auto;
  padding: 50px;
  background-color: rgba(17, 83, 83, 0.3);

  box-shadow: 1px 1px 30px rgba(46, 223, 170, 0.5);
}

/* 注册界面 */
.container2 {
  display: flex;
  flex-direction: column;
  align-items: center;

  position: absolute;
  left: 0;
  top: -1300px;
  right: 0;
  bottom: 0;
  margin: 0 auto;

  opacity: 0;
}

/* 注册界面的输入框容器 */
.logoiptBox2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  height: 460px;
  width: 450px;

  padding: 50px;
  background-color: rgba(17, 83, 83, 0.3);
  box-shadow: 1px 1px 30px rgba(46, 223, 170, 0.5);
}

/* 粒子背景 */
.background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
}

/* 页面的logo */
.logo {
  width: 100%;
  height: 40px;

  line-height: 80px;
  margin-bottom: 8em;
}

/* 会旋转的logo */
.logo i {
  font-size: 6em;
  margin-right: 40px;
  color: black;

  opacity: 0.9;
  animation: rover 8s linear infinite;
}
.logo i:hover {
  transition: 1s;
  color: white;
}
@keyframes rover {
  from {
    transform: rotateZ(0deg);
  }

  to {
    transform: rotateZ(360deg);
  }
}

/* 水波流动标题的特效 */
.logo .span1 {
  position: absolute;

  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 1);
  font-size: 5em;
  font-weight: bold;
  letter-spacing: 4px;

  font-family: Georgia, "Times New Roman", Times, serif;
}
.logo .span2 {
  position: absolute;

  color: #00cda4;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 1);
  font-size: 5em;
  letter-spacing: 4px;
  font-weight: bold;
  animation: fonts 5s linear infinite;

  font-family: Georgia, "Times New Roman", Times, serif;
}
@keyframes fonts {
  0% {
    clip-path: polygon(
      0% 100%,
      0% 50%,
      11% 47%,
      22% 54%,
      30% 60%,
      41% 67%,
      56% 71%,
      69% 71%,
      82% 71%,
      94% 70%,
      100% 50%,
      100% 100%
    );
  }
  25% {
    clip-path: polygon(
      0% 100%,
      0% 58%,
      13% 48%,
      27% 46%,
      39% 47%,
      51% 51%,
      60% 58%,
      68% 63%,
      79% 66%,
      92% 67%,
      100% 62%,
      100% 100%
    );
  }
  50% {
    clip-path: polygon(
      0% 100%,
      0% 58%,
      16% 64%,
      32% 65%,
      42% 60%,
      49% 51%,
      62% 46%,
      75% 46%,
      87% 47%,
      94% 54%,
      100% 62%,
      100% 100%
    );
  }
  75% {
    clip-path: polygon(
      0% 100%,
      0% 58%,
      10% 65%,
      25% 66%,
      40% 62%,
      52% 61%,
      66% 56%,
      76% 52%,
      83% 46%,
      91% 41%,
      100% 40%,
      100% 100%
    );
  }
  100% {
    clip-path: polygon(
      0% 100%,
      0% 50%,
      11% 47%,
      22% 54%,
      30% 60%,
      41% 67%,
      56% 71%,
      69% 71%,
      82% 71%,
      94% 70%,
      100% 50%,
      100% 100%
    );
  }
}

/* 输入框大盒子 */
form {
  margin-left: 4.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;

  color: #279bd1;
  font-size: 1.5em;

  text-shadow: 2px 2px 2px black;
}

/* 输入框前面的图标 */
form i {
  font-size: 1.5em;
  color: #00cda4;
  margin-left: -30px;
  transform: translateY(10%);
  opacity: 0.8;
}

/* 调整注册界面输入框盒子的位置 */
.logoiptBox2 form {
  margin-top: -45px;
}

/* 设置每个输入框的样式 */
input {
  background-color: rgba(0, 255, 255, 0);
  border: none;
  width: 70%;
  border-bottom: 2px solid rgba(4, 255, 234, 0.3);
  padding: 9px;
  margin-bottom: 40px;
  margin-top: 10px;
  height: 2em;
  margin-left: 15px;
  transition: 1s;
}

/* 输入框里面的初始文字样式 */
input::placeholder {
  color: black;
  letter-spacing: 1.5px;
  font-size: 1.2em;
}

/* 输入框获得焦点后的样式 */
input:focus {
  transition: 1s;
  outline: none;
  border-bottom: 2px solid rgba(4, 255, 234, 1);
}
input:focus::placeholder {
  opacity: 0;
  transition: 0.3s;
}

/* 按钮盒子的样式 */
.btnBox {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 每个按钮的样式 */
button {
  position: relative;
  width: 130px;
  height: 60px;
  border: none;

  margin: 25px;
  background-color: transparent;

  font-size: 1.5em;
  color: rgba(4, 255, 234, 0.7);
  transition: 0.6s;
}
button i {
  font-size: 0.8em;
}
button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 15px;
  height: 15px;
  border-top: 2px solid rgba(4, 255, 234, 0.7);
  border-left: 2px solid rgba(4, 255, 234, 0.7);
  transition: 0.6s;
}
button::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;

  width: 15px;
  height: 15px;
  border-right: 2px solid rgba(4, 255, 234, 0.7);
  border-bottom: 2px solid rgba(4, 255, 234, 0.7);
  transition: 0.6s;
}
button:hover::after {
  width: 95%;
  height: 95%;
  transition: 0.6s;
  color: #70f6e0;
}
button:hover::before {
  width: 95%;
  height: 95%;
  color: #70f6e0;
  transition: 0.6s;
}
button:hover {
  transition: 0.6s;
  background-color: #70f6e0;
  color: #111;
  box-shadow: 0 0 50px #70f6e0;
}
button:focus {
  outline: none;
}
li {
  display: flex;
  list-style: none;
}

/* 每个输入框右边的重置按钮 */
.Rset {
  display: none;
  transition: 1s;
  color: black;
  font-size: 16px;
  height: 30px;
  width: 50px;
}
.Rset i {
  transition: 1s;
  margin: auto;
  color: #70f6e0;
}
.Rset:hover i {
  color: black;
}
